<?php 
    drupal_add_css('css/style.dev1.css');
    drupal_add_js('js/jquery.validate.min.js');
    drupal_add_js('js/script.category.js');
    drupal_add_js('misc/collapse.js');
    echo l('Quay lại', 'back-end/filter/property/' . arg(3));
?>
<fieldset class="menu-item-form collapsible collapsed">
    <legend class="menu-item-form collapsible"><a style="cursor: pointer">Thêm thuộc tính</a></legend>
<form name="add_filter_name" id="add_filter_name" action="" method="POST">
    <div>
        <div class="node-form">
            <div class="standard">
                <div id="content-inner">
                <?php
                    $access = user_access('admin block');
                    for($i = 1; $i<=3; $i++) {
                ?>
                <div class="form-item">
                    <label class="label-in-line" for="filter_name">Tên thuộc tính:</label>
                    <input type="text" value="" size=50" id="filter_name" name="filter_name[]" maxlength="255" />
                    
                    <label class="label-in-line" for="filter_type">Kiểu hiển thị:</label>
                    <select id="filter_type" name="filter_type[]">
                        <option value="<?php echo FILTER_TYPE_NORMAL ?>">Dạng dropdown</option>
                        <option value="<?php echo FILTER_TYPE_CHECKBOX ?>">Dạng checkbox</option>
                    </select>
                    <?php if($access){ ?>
                    <label class="label-in-line" for="filter_status">Trạng thái:</label>
                    <select id="filter_status" name="filter_status[]">
                        <option value="<?php echo FILTER_STATUS_SHOW ?>">Hiển thị</option>
                        <option value="<?php echo FILTER_STATUS_HIDE ?>">Không hiển thị</option>
                    </select>
                    <?php } else { ?>
                    <input type="hidden" value="<?php echo FILTER_STATUS_SHOW ?>" name="filter_status[]" />                    
                    <?php }?>
                    </div>
                    <?php        
                        }
                    ?>
                </div>    
                <img id="add_row" style="cursor: pointer; margin: 0px 10px;" src="<?php echo base_path() ?>images/add_row.png" alt="Thêm 1 dòng" title="Thêm 1 dòng" />
                <br />
                <input type="hidden" name="group_id" id="group_id" value="<?php echo $data['group']->group_id ?>" readonly="true" />
                <input type="hidden" name="cate_id" id="cate_id" value="<?php echo $data['cate']->cate_id ?>" readonly="true" />
                <input type="submit" value="Lưu" />                
                <input type="reset" rel="add_filter_name" value="Nhập lại" />                
            </div>
        </div>
    </div>
</form>    
</fieldset>